# -*- coding: utf-8 -*-
# @author : wanglei
# @date : 2020/4/12 11:09 PM
# @description : 可插拔的场景，每个视频可以插入某个场景

from manimlib.imports import *
from from_victor.common_scenes.custom_scenes import *

"""
logo开场场景
"""
class Logo(Scene):
    def construct(self):
        logo = SVGMobject("glede.svg").set_fill(BLACK).set_stroke(color=WHITE, width=1)
        introduce = TextMobject(
            '欢迎来到鹰视界',
            tex_to_color_map={"鹰": BLUE}
        )
        logo.move_to(UP)
        introduce.move_to(0.7*DOWN)
        self.play(Write(logo))
        self.play(Write(introduce))
        logo_intro = Group(logo, introduce)
        # logo_intro.scale(0.3)
        # logo_intro.move_to(6*RIGHT+3*UP)
        logo_min = logo.copy()
        introduce_min = TextMobject(
            '鹰视界'
        )
        logo_min.move_to(UP)
        introduce_min.move_to(0.7 * DOWN)
        logo_intro_min = Group(logo_min, introduce_min)
        logo_intro_min.scale(0.3)
        logo_intro_min.to_edge(UL, buff=0.2)
        self.play(Transform(logo_intro, logo_intro_min))
        self.wait()


"""
提醒用户关注
"""
# class Follow(Scene):
#     def construct(self):

